package com.yuyou.tas.lesson.service;

import com.yuyou.tas.service.api.admin.entity.CommDataConfig;

import java.util.List;
import java.util.Map;

public interface ICommDataConfigService {
    
	/**
	 * 找出某种类型所有可用数据
	 * @param category
	 * @return
	 */
    List<CommDataConfig> findUseByCategory(Integer category);

    List<CommDataConfig> findSubject(Map<String , Object> condition);

    List<CommDataConfig> findMaterial(Map<String , Object> condition);
    
    CommDataConfig selectByCode(String code);

    List<CommDataConfig> findUserSubject(Long userId , Long sectionId);

    List<CommDataConfig> findTeachingSubject(Long userId , Long sectionId);
}